import request from '../util/request.js'

export const getUserInfo = () => request.get('/my/userinfo')

//更新个人信息
export const updateUserInfo = data => request.post('/my/userinfo', data)
//更新密码
export const updatePwd = data => request.post('/my/updatepwd', data)
//获取我的预约信息
export const getMyAppointment = () => request.get('/my/reservation')
//取消预约座位
export const cancelAppointment = data => request.post('/my/cancelreservation', data)
//发送预约请求
export const startAppointment = data => request.post('/seat/insertreservation', data)